@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}
body .el-menu--vertical .el-menu{
  background: linear-gradient(180deg, #001b79 0%, #1973cc 48%, #55cec7 100%);
}
body .el-menu--vertical .el-menu .el-menu-item {
  &:hover {
    // background-color: $menuHover !important;
    background: #247bb4!important;
  }
}
body .el-menu--vertical .el-menu .el-submenu>.el-submenu__title {
  &:hover {
    // background-color: $menuHover !important;
    background: #247bb4!important;
  }
}
label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app{
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus{
  outline: none;
 }

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

code {
  background: #eef1f6;
  padding: 15px 16px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  font-size: 15px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  a {
    color: #337ab7;
    cursor: pointer;
    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.warn-content{
  background: rgba(66,185,131,.1);
  border-radius: 2px;
  padding: 16px;
  padding: 1rem;
  line-height: 1.6rem;
  word-spacing: .05rem;
  a{
    color: #42b983;
    font-weight: 600;
  }
}

//main-container全局样式
.app-container {
  overflow: hidden;
  >div{
    background: #fff;
  }
  .main-info-container{
    padding: 20px;
    &::after{
      content:".";
      display:block;
      height:0;
      clear:both;
      visibility:hidden;
    }
  }
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
  overflow: hidden;
  height: 38px;
  .el-pagination{
    .el-pagination__total{
      margin-top: 5px;
    }
    .btn-prev{
      margin-top: 5px;
    }
    .btn-next{
      margin-top: 5px;
    }
    .el-pager{
      margin-top: 5px;
    }
  }
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
  .subtitle {
    font-size: 20px;
    color: #fff;
  }
  &.draft {
    background: #d0d0d0;
  }
  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;
  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;
  .filter-item {
    display: inline-block;
    vertical-align: middle;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}
/* 只读输入框 */
.el-disabled input{
  border: none;
  color: #5c9fff;
  background-color: #eff5ff;
}
.el-date-editor.el-input, .el-date-editor.el-input__inner{
  width: 100%;
}
/* 下拉框宽度 */
.el-select{
  width: 100%;
}
.el-cascader{
  width: 100%;
  line-height: 36px;
  input{
    height: 36px;
    line-height: 36px;
  }
}
/* 数字选择器 */
.el-input-number .el-input .el-input__inner{
  border-color: #378AD1;
}
.el-input__inner{
  -webkit-appearance: none;
  height: 36px!important;
  line-height: 16px!important;
  padding-top: 10px;
  padding-bottom: 10px;
}
.el-input-number__decrease, .el-input-number__increase{
  background-color: #378AD1;
  border-left-color: #378AD1;
  color: #FFFFFF;
}
.el-input-number__decrease:hover, .el-input-number__increase:hover{
  background-color: #3A7EB9;
  border-left-color: #378AD1;
  color: #FFFFFF;
}
.el-input-number__decrease.is-disabled, .el-input-number__increase.is-disabled{
  background-color: #DCDFE6;
  color: #645F5F;
}
/* 输入框带小图标 */
/* 带小图标的输入框后面还有按钮el-form-item标签加一个isButton类名 */
.isButton button{
  position: absolute;
  top: 0;
  right: 0;
}
.el-input-icon{
  position: absolute;
  top: 11px;
  right: 105px;
}
// 显示两列表单
.twoColumn{
  zoom:1;
  .el-form-item{
    width: 50%;
    float: left;
  }
  &::after{
    content:".";
    display:block;
    height:0;
    clear:both;
    visibility:hidden;
  }
}
// 表格的统一样式
.el-table thead th{
  background-color: #ebebeb
}
.el-table td, .el-table th.is-leaf{
  border-bottom: 1px solid #e8e8e8;
}
.el-table--border td, .el-table--border th, .el-table__body-wrapper .el-table--border.is-scrolling-left ~ .el-table__fixed{
  border-right: 1px solid #e8e8e8;
}
/* 开关按钮 */
.el-switch__label {
  position: absolute;
  display: none;
  color: #fff;
}
.el-switch__label *{
  font-size: 12px!important;
}
.el-switch {
  height: 24px;
  line-height: 24px;
}
/*打开时文字位置设置*/
.el-switch__label--right {
  z-index: 1;
  right: -6px;
  top: 3px;
}
/*关闭时文字位置设置*/
.el-switch__label--left {
  z-index: 1;
  left: 19px;
}
/*显示文字*/
.el-switch__label.is-active {
  display: block;
  color: #fff;
  text-align: left;
}
.el-switch .el-switch__core,
.el-switch .el-switch__label {
  width: 60px !important;
}
.el-switch .el-switch__core span,
.el-switch .el-switch__label span{
    width: 36px;
    height: 20px;
    float: left;
    line-height: 20px;
    text-align: center;
}
.el-switch.is-disabled .el-switch__core, .el-switch.is-disabled .el-switch__label{
  cursor: default;
}
.el-switch.is-disabled{
  opacity: 1;
}
/* 表格里面的蓝色字体颜色 */
.hink{
  color: #36B4F7;
  cursor: pointer;
}
.table-icon{
  color: #36B4F7;
  cursor: pointer;
  font-size: 18px;
}
/* 展开行边距 */
.tableDetail .el-table__expanded-cell{
  padding: 0;
  padding-left: 46px;
}
/* 展开行里面的按钮 */
.table-btn{
  color: #01A2F5;
}
/* 弹窗距上面高度 */
.el-dialog{
  padding-right: 35px;
}
.noMargin .el-dialog{
  padding-right: 0;
}
.el-dialog__title{
  color: #666;
  font-size: 16px;
}
.el-dialog__body{
  padding: 10px 20px;
}
.el-dialog__footer{
  text-align: center;
}
.task{
  .el-dialog__body{
    padding: 10px 0px;
  }
  .el-dialog__header{
    padding: 20px 10px 10px 30px;
  }
  .el-dialog__title{
    color: #1992ff;
  }
}
.titleColor{
  .el-dialog__title{
    color: #1992ff;
  }
}
.planColor .el-dialog__title{
  color: #606266!important;
  font-weight: bold;
}
.deleteUser .el-dialog{
  padding-right: 0;
  .el-dialog__header{
    border-bottom: 1px solid #cdd;
    .el-dialog__title{
      color: #666;
      font-size: 14px;
    }
  }
}
.filter-container .el-input{
  width: 160px;
}
.pagination-container .el-input{
 width: 50px;
}
.filter-container .el-form-item{
  margin-bottom: 10px;
}
/* 表格上面的查询按钮 */
.btns{
  text-align: right;
}
/* tabs组件表头背景色 */
.tab-info{
  .el-tabs__header{
    background: #F9F9F8;
  }
}
/* ul,li */
ul,li{
  list-style: none;
  padding: 0;
  margin: 0;
}

.el-input-group__append, .el-input-group__prepend{
  background: #D8D8D8;
  color: #4F4C4C;
}
/* 穿梭框高度 */
.el-transfer-panel__item{
  height: 25px;
  line-height: 25px;
  display: block;
}
/* 按钮默认样式 */
.el-button.active{
  background: #C7E7F8;
  color: #1992ff;
  border: 1px solid #C7E7F8;
}
.el-button.default{
  color: #1992ff;
  border: 1px solid #1992ff;
}
.el-upload-list--picture-card .el-upload-list__item{
  width: 134px;
  height: 134px;
}
.el-upload--picture-card{
  width: 132px;
  height: 132px;
}

/* 高德地图 大屏展示 */
.amap-marker-content{
  position: absolute;
  top: 30px;
  left: 50%;
  width: 100px;
  margin-left: -50px;
}
.amap-marker-label{
  border:0;
  padding: 0;
  background: transparent;
  width: 100%;
  position:relative;
  top:0!important;
  left: 0%!important;
  .text{
    width:100%;
    font-size: 14px;
    padding:0 5px;
    height:30px;
    line-height: 26px;
    border:2px solid #b6b8bf;
    border-radius: 5px;
    text-align: center;
    color: #b6b8bf;
    background: rgba($color: #000000, $alpha: 0.5);
  }
}
.markerImgStyle {
  position:relative;
  width:100%;
  .text{
    width: max-content;
    height:30px;
    line-height: 26px;
    border:2px solid #b6b8bf;
    border-radius: 5px;
    text-align: center;
    padding: 0px 8px;
    color: #b6b8bf;
    background: rgba($color: #000000, $alpha: 0.5);
  }
}
.markerImgStyle1 {
  position:relative;
  .text{
    width: max-content;
    height:30px;
    line-height: 26px;
    border:2px solid #b60b12;
    border-radius: 5px;
    text-align: center;
    padding: 0px 8px;
    color: #b60b12;
    position: absolute;
    top: -30px;
    left: 15%;
    background: rgba($color: #000000, $alpha: 0.5);
  }
}
.markerImgStyle2 {
  position:relative;
  width: 100%;
  .text{
    width: max-content;
    height:30px;
    line-height: 26px;
    border:2px solid #b60b12;
    border-radius: 5px;
    text-align: center;
    padding: 0px 8px;
    color: #b60b12;
    overflow: hidden;
    background: rgba($color: #000000, $alpha: 0.5);
    span{
      display: block;
      float: left;
    }
    .icon{
      display: block;
      float: left;
      width: 26px;
      height: 26px;
    }
  }
}
.style1 .text{
  color: #b60b12;
  border:2px solid #b60b12;
}
.style2 .text{
  color: #EACB11;
  border:2px solid #EACB11;
}
.style3 .text{
  color: #5bd5d5;
  border:2px solid #5bd5d5;
}
.img img{
  display: block;
  margin: 0 auto;
}

#addImg{
  i{
    color: #007BFE;
    font-size: 70px;
  }
  .add-text {
    position: relative;
    display: block;
    color: #000;
    width: 100%;
    height: 100%;
    top: -100%;
    span {
      position: absolute;
      bottom: 100px;
      width: 100%;
      color: #aaa;
      text-align: center;
      height: 40px;
      line-height: 40px;
      display: block;
    }
  }
}
